package com.vedu.organization.service;

import com.vedu.common.PageResult;
import com.vedu.organization.entity.bo.OrganizationBo;
import com.vedu.organization.filter.OrganizationFilter;

/**
 * version: 1.0
 *
 * @author yuancheng.li [create on 2018/8/13 23:54 ]
 */
public interface OrganizationService {

    /**
     * 创建机构
     *
     * @param organization
     * @return
     */
    boolean createOrganization(OrganizationBo organization);

    /**
     * 修改机构信息
     *
     * @param organization
     * @return
     */
    boolean modifyOrganization(OrganizationBo organization);

    /**
     * 审核机构
     *
     * @param organizationId
     * @return
     */
    boolean auditPassOrganization(Integer organizationId);

    /**
     * 查询机构信息
     *
     * @param organizationId
     * @return
     */
    OrganizationBo findOrganizationInfo(Integer organizationId);

    /**
     * 查询机构下的用户(分页)
     *
     * @param filter
     * @return
     */
    PageResult<OrganizationBo> findByFilter(OrganizationFilter filter);


}
